package com.itelite.mapper;

import com.itelite.domain.dto.Carousel;
import com.itelite.domain.pojo.Config;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/8/9-15:14
 **/
@Mapper
public interface ConfigMapper {

    List<Carousel> queryCarousels();
    Config queryCarousel(Integer configId);
    //查找正在使用的背景图
    Config queryBackGround();

    Integer queryRecordDeleteDate();

    void deleteConfig(Integer configId);

    Integer insertConfig(Config config);

    Config queryConfig(Integer type);

    void updateSendEmailState(Integer state);
}
